/*
 * @Descripttion: 酒店差标API
 * @version: 2.0
 * @Author: 许国辉
 * @Date: 2022-12-05 21:53:57
 * @LastEditors: 许国辉
 * @LastEditTime: 2023-09-15 11:15:53
 */

import {
  TravelStandardHotelModel,
  TravelStandardHotelModelParamsModel,
} from './model/travelStandardHotel';
import { defHttp } from '/@/utils/http/axios';
enum Api {
  getTravelStandardByHotel = '/travelStandardHotel/getTravelStandardHotelByParams',
  updateTravelStandardHotel = '/travelStandardHotel/updateTravelStandardHotel',
}
export function getTravelStandardByHotel(params: TravelStandardHotelModelParamsModel) {
  return defHttp.post<Array<TravelStandardHotelModel>>({
    url: Api.getTravelStandardByHotel,
    params,
    headers: {
      ignoreCancelToken: true,
    },
  });
}

export function updateTravelStandardByHotel(params: TravelStandardHotelModel) {
  return defHttp.post<number>({
    url: Api.updateTravelStandardHotel,
    params,
    headers: {
      ignoreCancelToken: true,
    },
  });
}
